package com.wosaitech.baby.control;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.DispatcherServlet;

public class DispatchFilter extends DispatcherServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	protected void doDispatch(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		String url = request.getRequestURL().toString();
		String uri = request.getRequestURI();
		System.out.println(url);
		if (uri.endsWith("jsp")) {
			System.out.println(url);
			super.doDispatch(request, response);
		} else {
			super.doDispatch(request, response);
		}
	}

}
